<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="hyl.ext.base.*,hyl.core.MyFun"%>
<%@ page import="com.servlet.*"%>
<%
/* 系统全局变量定义区
*/
String SYSTEMNAME = "sso后台管理系统";
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
// MyFun.print("sso",basePath);
MySession tk = null;

Integer mysession_role = null;
try {
	tk = SessionFactory.getSession(request, response);

	if (tk == null || tk.getUserId() == null) {
		// response.getWriter().write(tk);
		// System.out.print("11");
		//Response.forward(request, response, M.URL_login);
		response.sendRedirect(request.getContextPath() + M.URL_login);
		return;
	} else {
		// System.out.print("22");
		mysession_role = tk.getRoleid();

	}
} catch (Exception e) {
	// System.out.print("33");
	response.sendRedirect(request.getContextPath() + M.URL_login);
} // 过滤非法ip
%>

